package com.aimer.controller;

import com.aimer.result.Result;
import com.aimer.vo.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/merchant")
@Api(tags = "商家")
public class MerchantController {

    @ApiOperation("申请入驻")
    @PostMapping("recruitment")
    public Result recruitment(MerchantVo merchantVo){
        return new Result("",0,new StatusVo(),0);
    }

    @ApiOperation("查找名下店铺")
    @GetMapping("findShop")
    public Result findShop(@RequestParam @ApiParam("商家Id") Integer merchantId){
        return new Result("",0,new ShopSynopsisVo(),0);
    }

    @ApiOperation("添加店铺")
    @PostMapping("addShop")
    public Result addShop(ShopVo shopVo){
        return new Result("",0,"",1);
    }
}
